package com.wn.pettyloan.service;

import com.wn.pettyloan.dto.EmpDto;
import com.wn.pettyloan.entity.Emp;
import com.wn.pettyloan.vo.EmpVo;
import com.wn.pettyloan.vo.RoleVo;

import java.util.List;

/**
 * @program: pettyloan
 * @InterfaceName EmpService
 * @description:
 * @author: lyy
 * @create: 2022-12-09 16:41
 **/
public interface EmpService {
    int deleteByPrimaryKey(Long id);

    int insert(Emp record);

    int insertSelective(Emp record);

    Emp selectByPrimaryKey(Long id);

    List<Emp> selectAll();

    List<RoleVo> selectRoleByEmp();

    int updateByPrimaryKeySelective(Emp record);

    int updateByPrimaryKey(Emp record);

    EmpVo empLogin(EmpDto empDto);

    Emp selectByUacc(String username);
}